#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20230223.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../wilcom-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy wilcom-gateway "
cp ../wilcom-gateway/target/wilcom-gateway.jar ./wilcom/gateway/jar

echo "begin copy wilcom-auth "
cp ../wilcom-auth/target/wilcom-auth.jar ./wilcom/auth/jar

echo "begin copy wilcom-visual "
cp ../wilcom-visual/wilcom-monitor/target/wilcom-visual-monitor.jar  ./wilcom/visual/monitor/jar

echo "begin copy wilcom-modules-system "
cp ../wilcom-modules/wilcom-system/target/wilcom-modules-system.jar ./wilcom/modules/system/jar

echo "begin copy wilcom-modules-file "
cp ../wilcom-modules/wilcom-file/target/wilcom-modules-file.jar ./wilcom/modules/file/jar

echo "begin copy wilcom-modules-job "
cp ../wilcom-modules/wilcom-job/target/wilcom-modules-job.jar ./wilcom/modules/job/jar

echo "begin copy wilcom-modules-gen "
cp ../wilcom-modules/wilcom-gen/target/wilcom-modules-gen.jar ./wilcom/modules/gen/jar

